package cc.ailley.singleton.lazy;

/**
 * 静态内部类(线程安全)
 *
 * @author ailley
 */
public class InnerClassLazy {

    private InnerClassLazy(){}

    public static InnerClassLazy getInstance(){
        return InnerClass.INSTANCE;
    }

    private static class InnerClass{
        private static InnerClassLazy INSTANCE = new InnerClassLazy();
    }
}
